/*
 # 预科-毕业管理
 ## 结业资格审核
  ** 接口请求api **
 */
import { http, prefix } from './common';
const service = prefix + '/preparatoryCompletionAudit';
const url = {
  pageList: `${service}/pageList`,
  graduation: `${service}/graduation`,
  delay: `${service}/delay`,
  backToPlace: `${service}/backToPlace`,
  uploadDelayFile: `${service}/uploadDelayFile`,
  getCreditsInfo: `${service}/getCreditsInfo`,
  getAuditDetail: `${service}/getAuditDetail`,
  batchUpdateComplete:`${service}/batchUpdateComplete`,
  publish:`${service}/publish`
};

export default {
  pageList: (params) => http.httpPost(url.pageList, params),
  graduation: (params) => http.httpPost(url.graduation, params),
  delay: (params) => http.httpPost(url.delay, params),
  backToPlace: (params) => http.httpPost(url.backToPlace, params),
  uploadDelayFile: (params) => http.httpPost(url.uploadDelayFile, params),
  getCreditsInfo: (params) => http.httpPost(url.getCreditsInfo, params),
  getAuditDetail: (studentId) => http.httpGet(`${url.getAuditDetail}/${studentId}`),
  batchUpdateComplete: (params) => http.httpPost(url.batchUpdateComplete, params),
  publish: (params) => http.httpPost(url.publish, params),
};
